package com.zzt.aop.aspect;

import lombok.extern.slf4j.Slf4j;
import org.aspectj.lang.annotation.After;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

/**
 * Created with IntelliJ IDEA.
 * Description
 * User: panda
 * Date: 2025-03-30
 * Time: 14:16
 */
@Aspect
//@Component
@Order(1)
@Slf4j
public class AspectDemo4 {

    @Before("com.zzt.aop.aspect.AspectDemo2.pt2()")
    public void doBefore(){
        log.info("AspectDemo4 doBefore...");
    }

    @After("com.zzt.aop.aspect.AspectDemo2.pt2()")
    public void doAfter(){
        log.info("AspectDemo4 doAfter...");
    }

}
